import * as type from './mutation-types'

const mutations = {
  [type.ADD_TO_CART](state, goods){
    state.cartList.push(goods)
  },
  [type.INCREMENT_COUNT](state, index){
    state.cartList[index].count += 1
  }
}

export default mutations